<%--
  Created by IntelliJ IDEA.
  User: MyDream
  Date: 2020/8/28
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="paging">
    <div class="pag-left f-l">
        <c:if var="isFirst" test="${pm.pn <= 1}">
            <a href="javascript:;" class="about left-r f-l"><</a>
        </c:if>
        <c:if test="${!isFirst}">
            <a href="${basePath}commodityDp?method=toCanyinyule&pn=${pm.pn-1}" class="about left-r f-l"><</a>
        </c:if>
        <ul class="left-m f-l">
            <c:forEach var="i" begin="1" end="${pm.pages}" step="1">
                <c:if var="isPn" test="${pm.pn==i}">
                    <li class="active"><a href="javascript:;">${i}</a></li>
                </c:if>
                <c:if test="${!isPn}">
                    <li><a href="${basePath}commodityDp?method=toCanyinyule&pn=${i}">${i}</a></li>
                </c:if>
            </c:forEach>
            <div style="clear:both;"></div>
        </ul>
        <c:if var="isLast" test="${pm.pn >= pm.pages}">
            <a href="javascript:;" class="about left-l f-l">></a>
        </c:if>
        <c:if test="${!isLast}">
            <a href="${basePath}commodityDp?method=toCanyinyule&pn=${pm.pn+1}" class="about left-l f-l">></a>
        </c:if>
        <div style="clear:both;"></div>
    </div>
    <div class="pag-right f-l">
        <div class="jump-page f-l">
            到第<input type="text" name="page" id="page"/>页
        </div>
        <button class="f-l" onclick="toCanyinyule()">确定</button>
        <div style="clear:both;"></div>
    </div>
    <div style="xclear:both;"></div>
</div>
